﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DefaultSite.Master" AutoEventWireup="true"
    CodeBehind="InputBaseInfo.aspx.cs" Inherits="SocialIn.Web.Members.InputBaseInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#btnCheckUserID").click(function () {
                var tempid = $.trim($("#<%= userID.ClientID  %>").attr('value'));
                $.post('ValidationCheck.aspx', { 'userid': tempid }, function (result) {
                    var message = "";
                    switch (result) {
                        case "0":
                            message = "* 사용가능한 아이디입니다.";
                            break;
                        case "-1":
                            message = "* 네트워크가 불안정합니다. 다시 시도해주세요."
                            break;
                        case "1":
                            message = "* 이미 등록된  아이디입니다.";
                            break;
                    }
                    $("#message01").text(message);
                    $('#<%= isChecked.ClientID %>').attr("value", result);
                });
            });

            $("#<%= btnJoinOK.ClientID %>").click(function () {
                var val = $("input[@name='userType']:checked").val();
                $("#<%= hidJoinType.ClientID %>").attr("value", val)
                if (val == "")
                    return false;

                return true;
            });

        });

        //        function Validation() {
        //            alert($("radio[checked=checked]").attr("value"));
        //            return false;
        //        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="Member">
        <div class="JoinTitle" title="회원가입"></div> 
        <div id="info_content">
                <div class="FieldLine">
                    <input type="radio" name="userType" value="R003" 
                        checked="checked" title="파란코끼리(드리미)" class="InputRadio" onfocus="this.blur();"/> 파란코끼리(드리미)
                    / <input type="radio" name="userType" value="R002" title="분홍코끼리(받으미)" class="InputRadio" onfocus="this.blur();"/> 분홍코끼리(받으미)
                </div>
                <div class="FieldLine">
                    <span style="width:100px">아이디</span>
                    <input runat="server" type="text" style="height: 10px;" id="userID" />
                    <input type="button" value="" id="btnCheckUserID" 
                    style="background-image:Url(/res/img/members/checkID.png);background-repeat: no-repeat;width: 69px;height: 21px;"/>
                    <div id="message01" style="color: Red;">
                    </div>
                    <input type="hidden" value="-1" runat="server" id="isChecked" />
                </div>
                <div class="FieldLine">
                    <span class="JoinCaption" style="width:100px">닉네임</span>
                    <input runat="server" type="text" style="height: 10px;" id="userName" />
                    <div id="message02" style="color: Red;">
                    </div>
                </div>
                <div class="FieldLine">
                    <span style="width:100px">비밀번호</span>
                    <input runat="server" type="password" style="height: 10px;" id="password1" />
                    <div id="message03" style="color: Red;">
                    </div>
                </div>
                <div class="FieldLine">
                    <span style="width:100px">비밀번호 확인</span>
                    <input runat="server" type="password" style="height: 10px;" id="password2" />
                    <div id="message04" style="color: Red;">
                    </div>
                </div>
                <div class="FieldLine">
                    <span style="width:100px">메일 주소</span>
                    <input runat="server" type="text" style="height: 10px;" id="email" />
                    <div id="message05" style="color: Red;">
                    </div>
                </div>
            <asp:HiddenField runat="server" ID="hidJoinType" />
            <asp:Button runat="server" ID="btnJoinOK" OnClick="btnJoinOK_Click" Text=""
            style="background-image:Url(/res/img/members/join_Icon.png);background-repeat: no-repeat;width: 110px;height: 48px;"/>
            <hr />
        </div>
    </div>
    
</asp:Content>
